<template>
  <view class="card" @click="onClickEmit">
    <slot></slot>
  </view>
</template>

<script>
export default {
  name: "hb-card",
  methods: {
    onClickEmit() {
      this.$emit('click')
    }
  }
}
</script>

<style scoped lang="scss">
  .card {
    background: $hb-card-bg-color;
    border-radius: 16rpx;
    padding: 24rpx;
  }
</style>
